package dao

import "gin-wheel/app/models"

// 注册dao
func (d *Dao) Register(username, password, phone, email, qq, wechat string) (*models.UserModel, error) {
	var um models.UserModel
	return um.Register(d.engine, username, password, phone, email, qq, wechat)
}

// 获取用户的dao层
func (d *Dao) UserInfo(username, phone string) (*models.UserModel, error) {
	var um models.UserModel
	return um.UserInfo(d.engine, username, phone)
}

// 验证用户名和密码
func (d *Dao) Login(loginName, password string) (bool, error) {
	var um models.UserModel
	return um.Login(d.engine, loginName, password)
}
